package de.mahosoftware.gwt.games.durak.client.module;

import java.util.Comparator;

public class CardComparator implements Comparator<Card> {

	public int compare(Card o1, Card o2) {
		if (o1.getValue() < o2.getValue()) {
			return -1;
		} else if (o1.getValue() > o2.getValue()) {
			return 1;
		} else
			return 0;
	}

}
